package com.travel.api.service.message

import com.travel.api.beans.request.message.EmailRequest
import com.travel.api.beans.request.message.SMSRequest

/**
 * @ClassName 消息Service
 * @Author liguangyao
 * @Date 23/8/18 下午2:48
 * @Version 1.0
 */
interface MessageService {

    /**
     * 短信发送
     * @param mobile 手机号
     * @param code 验证码
     * @return
     */
    fun sendSMS(mobile: String, code: String): String

    /**
     * 短信验证码验证
     * @param request
     * @return
     */
    fun validationSMS(request: SMSRequest): Map<String, Any>

    /**
     * 邮箱发送
     * @param email 邮箱
     * @param code 验证码
     * @return
     */
    fun sendEmail(email: String, code: String)

    /**
     * 邮箱验证码验证
     * @param request
     * @return
     */
    fun validationEmail(request: EmailRequest): Map<String, Any>

}
